import request from '@/utils/request'

export function mapInfo(data) {
  return request({
    url: '/scssspt/api/screen/screen/queryData',
    method: 'GET',
    params: {...data}
  })
}

// 获取年份
export function Years(data) {
  return request({
    url: '/scssspt/api/screen/screen/queryYears',
    method: 'GET',
    params: {...data}
  })
}

// CMS稿件接口
export function indexBanner(data) {
  return request({
    url: 'http://www.sc.gov.cn/cms-scsrmzf/qryManuscriptByWebsiteId',
    method: 'POST',
    data: JSON.stringify(data)
    // params: {...data}
  })
}

export default {
  mapInfo,
  Years,
  indexBanner
}